package api.dialogs;


import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JSlider;
import javax.swing.SwingConstants;

public class InitRandomObsDialog extends JDialog {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public JSlider slider;
	public JButton btnAceptar_1;
	public JLabel label;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			InitRandomObsDialog dialog = new InitRandomObsDialog();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public InitRandomObsDialog() {
		setResizable(false);
		setModal(true);
		getContentPane().setLayout(null);
		setBounds(100, 100, 360, 238);
		
		JPanel panel = new JPanel();
		panel.setBounds(0, 0, 361, 216);
		getContentPane().add(panel);
		panel.setLayout(null);
		
		btnAceptar_1 = new JButton("Aceptar");
		btnAceptar_1.setBounds(135, 175, 86, 29);
		panel.add(btnAceptar_1);
		
		JLabel labelP = new JLabel("% ");
		labelP.setBounds(322, 88, 13, 16);
		panel.add(labelP);
		labelP.setFont(new Font("Lucida Grande", Font.PLAIN, 13));
		
		slider = new JSlider();
		slider.setValue(1);
		slider.setMaximum(50);
		slider.setMinimum(1);
		slider.setBounds(83, 116, 190, 29);
		panel.add(slider);
		
		JLabel lblTitulo = new JLabel("Introduzca el porcentaje de obstaculos:");
		lblTitulo.setBounds(18, 88, 248, 16);
		panel.add(lblTitulo);
		lblTitulo.setFont(new Font("Lucida Grande", Font.PLAIN, 13));
		
		JLabel lblPDO = new JLabel("Porcentaje de obstaculos");
		lblPDO.setBounds(94, 15, 180, 17);
		panel.add(lblPDO);
		lblPDO.setFont(new Font("Lucida Grande", Font.BOLD, 14));
		
		JSeparator separator = new JSeparator();
		separator.setBounds(18, 31, 323, 12);
		panel.add(separator);
		
		label = new JLabel();
		label.setText("1");
		label.setHorizontalAlignment(SwingConstants.RIGHT);
		label.setBounds(278, 88, 32, 14);
		panel.add(label);
	}
}

